
document.getElementById("logoImage").onmousemove = function () {
    var logo = document.querySelector(".headerLogo");
    logo.src="../images/login-2.png";
}
document.getElementById("logoImage").onmouseout = function () {
    var logo = document.querySelector(".headerLogo");
    logo.src="../images/login-2.png";
};
function turn() {
    var bannerImage =document.getElementById("bannerImage");
    var bannerSrc = bannerImage.src;
    console.log(bannerSrc);
    var src1 = "http://localhost:63342/shop/images/bannerImage/inzone_01.jpg";
    var src2 = "http://localhost:63342/shop/images/bannerImage/inzone_02.jpg";
    var src3 = "http://localhost:63342/shop/images/bannerImage/inzone_03.jpg";

    if(bannerSrc===src1){
        bannerImage.src = src2;
    }else if(bannerSrc===src2){
        bannerImage.src = src3;
    }else if(bannerSrc===src3){
        bannerImage.src = src1;
    }
}
window.onload=setInterval(turn,2000);
